/* Moon Dev's Custom Styles 🌙 */

/* Dark theme */
body {
    background-color: #0f172a;
    color: #f8fafc;
}

/* Rotating moon animation */
@keyframes moonRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.moon-rotate {
    animation: moonRotate 20s linear infinite;
}

/* Glowing text effect */
@keyframes glow {
    0% { text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #9333ea; }
    100% { text-shadow: 0 0 20px #fff, 0 0 30px #9333ea, 0 0 40px #9333ea; }
}

h1 {
    animation: glow 2s ease-in-out infinite alternate;
}

/* Processing phase animations */
.processing-phase {
    opacity: 0.4;
    transition: all 0.5s ease;
}

.processing-phase.active {
    opacity: 1;
}

/* Phase icon animations */
.phase-icon {
    color: #9333ea;
    transition: color 0.3s ease;
}

.phase-complete .phase-icon {
    color: #34d399;
}

/* Message animations */
.message-animation {
    opacity: 0;
    animation: fadeInSlide 0.5s ease-out forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fun message animation */
.fun-message {
    animation: fadeInOut 4s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Code block styling */
.code-block {
    background: #1e293b;
    border-radius: 0.5rem;
    padding: 1rem;
    position: relative;
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: 'Fira Code', monospace;
}

.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 0.25rem;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-button:hover {
    background: rgba(0, 0, 0, 0.5);
    color: #f8fafc;
}

/* Loading dots animation */
@keyframes loadingDots {
    0%, 20% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-5px); }
    80%, 100% { opacity: 0; transform: translateY(0); }
}

.loading-dots span {
    display: inline-block;
    animation: loadingDots 1.4s infinite;
    margin: 0 2px;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Phase completion animation */
@keyframes phaseComplete {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.phase-complete .phase-icon {
    color: #10B981;
    animation: phaseComplete 0.5s ease-out;
}

/* Phase error animation */
@keyframes phaseError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.phase-error .phase-icon {
    color: #EF4444;
    animation: phaseError 0.5s ease-in-out;
}

/* Button hover effects */
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
    transition: all 0.3s ease;
}

/* Existing styles */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-dots span {
    animation: loadingDots 1.5s infinite;
    opacity: 0;
    display: inline-block;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingDots {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.success-animation {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.error-animation {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.processing-phase.active .phase-icon {
    color: #9f7aea;
}

.processing-phase.phase-complete .phase-icon {
    color: #48bb78;
}

.processing-phase.phase-error .phase-icon {
    color: #f56565;
}

.code-block {
    position: relative;
    background: #1a202c;
    border-radius: 0.5rem;
    padding: 1rem;
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
}

.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.copy-button:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Progress message appear animation */
@keyframes messageAppear {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.progress-message {
    animation: messageAppear 0.5s ease-out forwards;
}

/* Phase icon pulse */
@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.phase-icon {
    animation: iconPulse 2s ease-in-out infinite;
}

/* Error shake animation */
@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-animation {
    animation: errorShake 0.5s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
} 